home *** CD-ROM | disk | FTP | other *** search
- Path: news.jf.intel.com!news
- From: Cero Kelvin <Rodney_Korn@ccm.jf.intel.com>
- Newsgroups: comp.lang.c,comp.lang.c++,comp.os.ms-windows.programmer.misc,comp.os.msdos.programmer,comp.programming,comp.windows.ms.programmer
- Subject: Re: How to access miliseconds?
- Date: Tue, 20 Feb 1996 09:28:10 -0800
- Organization: None
- Message-ID: <312A04AA.1E15@ccm.jf.intel.com>
- References: <4fqh79$j4j@usenet.rpi.edu> <3121E861.3EA8@tid.es> <31232CFA.6007@lure.u-psud.fr>
- NNTP-Posting-Host: rkorn.jf.intel.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (Win95; I)
-
- You need to use the Windows Multimedia timer services (MMTIMER) API.
- They are documented in the SDK:
-
- MMRESULT timeSetEvent(UINT uDelay, UINT uResolution,
- LPTIMECALLBACK lpTimeProc, DWORD dwUser, UINT fuEvent);
-
- MMRESULT timeKillEvent(UINT uTimerID);
-
- void CALLBACK TimeProc(UINT uID, UINT uMsg, DWORD dwUser, DWORD dw1,
- DWORD dw2);
-
-
- These will give you the 1ms timer callbacks. Read the docs carefully on
- these functions because misuse of them can cause system lockups.
-